package com.xiaochong.tir.order;

import com.xc.logclient.utils.LogTrace;
import com.xiaochong.service.common.CommonBase;
import com.xiaochong.tir.mq.util.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Project : xc-tir
 * @Package Name : com.xiaochong.tir.kline
 * @Description : TODO
 * @Author : daizhiqing@xiaochong.com
 * @Creation Date : 2018年06月16日下午4:26
 * @ModificationHistory Who When What
 */
@SpringBootApplication
@MapperScan(MqOrderApp.BASE_PACKAGE)
@EnableAutoConfiguration
@ServletComponentScan
@ComponentScan({MqOrderApp.BASE_PACKAGE, LogTrace.BASE_PACKAGE, CommonBase.BASE_PKG})
public class MqOrderApp {

    public static final String BASE_PACKAGE = "com.xiaochong.tir";
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(MqOrderApp.class, args);
        SpringContextUtil.setApplicationContext(applicationContext);
    }
}
